﻿//====================================================================
// Create by Daniel
// file： YCUserRole.cs
// project ：YunCMS
// Build time：2012-09-22
// modify:
// description:
// ===================================================================
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using YunCMS.Model;

namespace YunCMS.IDAL
{
    /// <summary>
    /// DAL YCUserRole Interface
    /// </summary>
    public interface IYCUserRoleDAL
    {
		/// <summary>
        /// Insert a YCUserRole
        /// </summary>
        int Add(Model.YCUserRole model);

        int AddWithActions(YCUserRole model);

        int UpdateWithActions(YCUserRole model);

        int DeleteWithActions(int id);

        /// <summary>
        /// update a YCUserRole
        /// </summary>
        int Update(Model.YCUserRole model);

        /// <summary>
        /// delete a YCUserRole
        /// </summary>
        int Delete(int id);

        /// <summary>
        /// get the max YCUserRole
        ///</summary>
        //int GetMaxId();

        /// <summary>
        /// IsExists?
        /// </summary>
        bool IsExist(int id);

        /// <summary>
        /// Get one YCUserRole
        /// </summary>
        Model.YCUserRole GetYCUserRole(int id);

        /// <summary>
        /// Get YCUserRole List
        /// </summary>
        IList<Model.YCUserRole> GetList(string name);

        IList<Model.YCUserRole> GetList();

        YCUserRole GetYCUserRoleWithActions(int id);
      
    }
}



